package com.jy.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.jy.common.convert.IntegerToBooleanConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Convert;

/**
 * <p>
 * 
 * </p>
 *
 * @author fzg
 * @since 2024-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MainPageSwiper implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主页轮播图aid
     */
    @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;

    /**
     * 轮播图类型
     */
    private String type;

    /**
     * 轮播图的URL
     */
    private String url;

    /**
     * 轮播图片的名字
     */
    private String name;

    /**
     * 轮播图片创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 类型id
     */
    private Integer typeId;

    /**
     * 轮播图code
     */
    private String swiperCode;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 轮播图描述
     */
    private String description;


    /**
     * 是否在手机端展示
     */
    @Convert(converter = IntegerToBooleanConverter.class)
    private Boolean isShowApp;

}
